package cn.edu.ujn.shi.service;

import cn.edu.ujn.shi.dao.UserType;
import cn.edu.ujn.shi.dao.UserTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: LC
 * @date 2024-05-31 16:26
 * @ClassName: UserTypeServiceImpl
 */
@Service
public class UserTypeServiceImpl implements IUserTypeService {

    @Autowired
    UserTypeMapper userTypeMapper;

    @Override
    public List<UserType> getAll() {
        return userTypeMapper.getAll();
    }

    @Override
    public List<UserType> getRepeat(UserType user) {
        return userTypeMapper.getRepeat(user);
    }

    @Override
    public List<UserType> getType(String type) {
        return userTypeMapper.getType(type);
    }

    @Override
    public void updateUser(UserType user) {
        userTypeMapper.updateUser(user);
    }

    @Override
    public void insert(UserType user) {
        userTypeMapper.insert(user);
    }

    @Override
    public void delete(String username) {
        userTypeMapper.delete(username);
    }

    @Override
    public UserType getById(String id) {
        return userTypeMapper.getById(id);
    }
}
